package com.tamartech.greendb.ui.tables;

import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;

import org.springframework.richclient.table.support.AbstractObjectTable;

public abstract class AbstractTable extends AbstractObjectTable
{

    public AbstractTable(String modelId, String[] columnPropertyNames)
    {
        super(modelId, columnPropertyNames);
    }

    @Override
    protected JComponent createControl()
    {
        JTable table = (JTable) super.createControl();
        
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        
        return table;
    }

}